package com.cos.emp.feign;

import com.cos.emp.common.entity.Emp;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @author: COS
 * @time: 2022/4/28 14:33
 * @description:
 */
@FeignClient("EMP-SUPPLIER")
public interface EmpCustomerFeignClient {

    @RequestMapping(value = "/getEmpByEno/{eno}", method = RequestMethod.GET)
    Emp getEmpByEno(@PathVariable Integer eno);

    @RequestMapping(value = "/getEmpList", method = RequestMethod.GET)
    public List<Emp> getEmpList();

    @RequestMapping(value = "/updateEmp", method = RequestMethod.POST)
    public Boolean updateEmp(@RequestBody Emp emp);

    @RequestMapping(value = "/addEmp", method = RequestMethod.POST)
    public Boolean addEmp(@RequestBody Emp emp);

    @RequestMapping(value = "/delEmp/{eno}", method = RequestMethod.GET)
    public Boolean delEmp(@PathVariable Integer eno);
}
